<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script src="https://cdn.bootcss.com/moment.js/2.24.0/moment.min.js"></script>
</head>
<body>
	<script>

var day = moment("asfasdfads");



if(day){
	console.log(true);
}

	</script>
</body>
</html>